﻿using MiniErp.Entity.DataStreams.DOs;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.Entity.DataStreams
{
    /// <summary>
    /// 公司职称表实体(暂时没什么暖用)
    /// </summary>
    [Table("Titles")]
    public class Titles
    {
        /// <summary>
        /// 职称编号
        /// </summary>
        /// 
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [ConcurrencyCheck]
        public int TitlesId { get; set; }
        /// <summary>
        /// 职称名
        /// </summary>
        /// 
        [Required]
        [MaxLength(20, ErrorMessage = "职称名不能大于20个字符")]
        public string TitlesName { get; set; }
        /// <summary>
        /// 职称描述
        /// </summary>
        public string TitlesDescribe { get; set; }

        public virtual List<UserInfo> userInfos { get; set; }
    }
}
